import Mock from 'mockjs'
import homeApi from './mockData/home'
import userApi from './mockData/user'
// param
// 1. 拦截路况
// 2. 请求方式
// 3. 制造假数据
Mock.mock(/api\/home\/getTableData/, 'get', homeApi.getTableData)
Mock.mock(/api\/home\/getCountData/, 'get', homeApi.getCountData)
Mock.mock(/api\/home\/getChartData/, 'get', homeApi.getChartData)

Mock.mock(/api\/home\/getUserData/, 'get', userApi.getUserData)
Mock.mock(/api\/user\/deleteUser/, 'get', userApi.deleteUser)
Mock.mock(/api\/user\/addUser/, 'post', userApi.addUser)
Mock.mock(/api\/user\/editUser/, 'post', userApi.editUser)